<template>
  <div :class="$style.framesm" @click="close">
    <div :class="$style.framesmBox" @click.stop>
      <div :class="$style.framesmTitle">
        <div :class="$style.framesmTitleText">平仓警告</div>
        <img @click="close" :class="$style.framesmTitleIcon" loading="lazy" alt="" src="/quxiaohei.png" />
      </div>
      <div :class="$style.frameContent">
        <lay-table :page="pageInfo" height="400px" :columns="columnList" :data-source="dataList" @change="changePage">
        </lay-table>
      </div>
    </div>
  </div>
</template>
<script>
import { defineComponent } from "vue";
export default defineComponent({
  name: "FrameSm2",
  data() {
    return {
      pageInfo:{ current: 1, limit: 10, total: 100 },
      dataList:[
        // {name1:'sas001',name2:'222',name3:'买涨',name4:'100',name5:'50'},
      ],
      columnList:[        
        { title:'订单号', width: '', key:'name1' },
        { title:'交易对', width: '', key:'name2' },
        { title:'购买方向', width: '', key:'name3' },
        { title:'收益', width: '', key:'name4' },
        { title:'止盈', width: '', key:'name5' },
        { title:'操作', width: '', key:'',fixed:'right' },
      ]
    };
  },
  methods: {
    changePage(page){
      
    },
    close() {
      this.$emit('close');
    },
  }
});
</script>
<style module>
.framesm {
  width: 100%;
  height: 100vh;
  background-color: rgba(255, 255, 255, 0.7);
  position: fixed;
  top: 0;
  left: 0;
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow-y: auto;
}

.framesmBox {
  width: 50%;
  background-color: var(--color-white);
  box-shadow: 0px 0px 30px 0px #C2C2C2;
  border-radius: 6px;
}

.framesmTitle {
  width: 100%;
  height: 55px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-sizing: border-box;
  padding: 0 19px;
  border-bottom: 1px solid #DCDFE6;
}

.framesmTitleText {
  font-family: Source Han Sans;
  font-size: 18px;
  font-weight: 300;
  color: #515A6E;
}

.framesmTitleIcon {
  width: 16px;
  height: 16px;
  cursor: pointer;
}

.frameContent {
  width: 100%;
  box-sizing: border-box;
  padding: 20px;
}
</style>